package com.patterns.demo.visitor.subject;

import com.patterns.demo.visitor.visitor.Visitor;

/**
 * Author: SamGroves
 * <p>
 * Description:
 * <p>
 * Date: 2017/12/21
 */
public class MySubject implements Subject {

    @Override
    public void accept(Visitor visitor) {
       visitor.visit(this);
    }

    @Override
    public Subject getsubject() {
        return this;
    }
}
